<?php

require_once 'Url.php';
require_once 'UrlRouter.php';

// Get the url controller
$urlRouter = new UrlRouter(dirname(__FILE__).'\urls.xml');
$url = $urlRouter->getCurrentRoute();

?><!doctype html>
<body>

	<table border="1" width="200">
		<tr>
			<td>Module</td>
			<td><?php echo $url->getModule() ?></td>
		</tr>
		
		<tr>
			<td>Controller</td>
			<td><?php echo $url->getController() ?></td>
		</tr>
		
		<tr>
			<td>Action</td>
			<td><?php echo $url->getAction() ?></td>
		</tr>
		
		<tr>
			<td>Arguments</td>
			<td><pre><?php print_r($url->getArgs()) ?></pre></td>
		</tr>
	</table>

</body>